
import http from "@/utils/http";
import {PRODUCT_URL} from "@/common/const";
/**
 * 查询服务中订单
 * @param {Object} centralToken token
 * @param {Number} 
 */
export  function getServiceOrders(centralToken) {
  const url = `${PRODUCT_URL}/yngp/common/order/queryInServiceOrderList.htm`;
  
  return http.get(url,{centralToken});
}

/**
 * 查询实名信息 及服务中订单
 * @param {Object} centralToken token
 * @param {Number} 
 */
 export  function getUserInfoOrder(centralToken) {
    const url = `${PRODUCT_URL}/yngp/common/order/queryUserIdCardOrderList.htm`;
    
    return http.get(url,{centralToken});
  }


/**
 * 金币明细列表
 * @param {Object} centralToken token
 * @param pageSize
 * @param currentPage 
 * @param {Number} 
 */
 export  function myGoldInfo(option) {
    const url = `${PRODUCT_URL}/yngp/app/myGoldInfo.htm`;
  
    return http.post(url,{...option});
  }

  /**
 * 金币总额信息
 * @param {Object} centralToken token
 * @param {Number} 
 */
 export  function getTotalGoldInfo(centralToken) {
    const url = `${PRODUCT_URL}/yngp/app/myTotalGoldInfo.htm`;
  
    return http.post(url,{centralToken});
  }

  

